﻿namespace Neovolve.Extensibility.ReSharper
{
    using System;
    using JetBrains.ReSharper.Feature.Services.Bulbs;

    /// <summary>
    /// The <see cref="ConvertToClrTypeQuickFix"/>
    ///   class is used to provide a context action to convert alias types to CLR types.
    /// </summary>
    [QuickFix]
    [CLSCompliant(false)]
    public class ConvertToClrTypeQuickFix : ConvertTypeQuickFix
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ConvertToClrTypeQuickFix"/> class.
        /// </summary>
        /// <param name="highlighter">
        /// The highlighter.
        /// </param>
        public ConvertToClrTypeQuickFix(ConvertToClrTypeHighlighting highlighter)
            : base(highlighter)
        {
        }

        /// <summary>
        /// Gets the type of the node search.
        /// </summary>
        /// <value>
        /// The type of the node search.
        /// </value>
        protected override TypeAliasFormat NodeSearchType
        {
            get
            {
                return TypeAliasFormat.ConvertToClr;
            }
        }
    }
}